<style>
    * {
        padding: 0;
        margin: 0;
    }

    .main {
        background-color: #fff;
        width: 100%;
        padding-left: 0.5%;
        height: 90px;
    }

    .main .box {
        width: 32%;
        height: 90px;
        background-color: #cc7300;
        border-radius: 3%;
        float: left;
        margin: auto 0.5%;
        position: relative;
    }

    .main .box .content {
        position: absolute;
        width: 100%;
        /* height: 100%; */
        text-align: center;
        margin: 10% auto;
        font-size: 16px;
        color: #faffe3;
    }
    .listContainer li .fieldPart .rowWrap {
    font-size: 14px;
    /* margin-top: 5px; */
    line-height: 18px;
    color: #333;
}
</style>

<div class="main">
    <div class="box">
        <div class="content">
            节日加班<br />
            <span id="jierihour"></span>小时<br />
            <span id="jieriday"></span>天
        </div>
    </div>
    <div class="box">
        <div class="content">
            公休日加班<br />
            <span id="gongxiurihour"></span>小时<br />
            <span id="gongxiuriday"></span>天
        </div>
    </div>
    <div class="box">
        <div class="content">
            平日加班<br />
            <span id="pingrihour"></span>小时<br />
            <span id="pingriday"></span>天
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {
        $("#3e2e591fa1d54d008b4542e9614874ae").bind("change", function () {//查询年份
            var param = {};
            param['applyYear'] = $("#3e2e591fa1d54d008b4542e9614874ae").val();
            Mobile_NS.triggerRefresh('f472095625f14d7a8bd5c16d2cc58943', param);
        });
    });

window.onload=function(){
    gettotal();
};
function gettotal(){
    var userid=Mobile_NS.getCurrUser();//获取用户id;
    var paramjson={"type":1,"userid":userid};
    var responseText={};
    Mobile_NS.ajax("/mobilemode/zsws/jiabanAction.jsp", paramjson, function (responsedata) {
        if (typeof (responsedata) == 'object') {
                responseText = responsedata;
            } else {
                responseText = $.parseJSON(responsedata);
            }
         var pingri=responseText['0'];
         var gongxiuri=responseText['1'];
         var jieri=responseText['2'];
         $('#pingrihour').html(pingri.hjsjxsstotal);
         $('#pingriday').html(pingri.hjsjtstotal);
         $('#gongxiurihour').html(gongxiuri.hjsjxsstotal);
         $('#gongxiuriday').html(gongxiuri.hjsjtstotal);
         $('#jierihour').html(jieri.hjsjxsstotal);
         $('#jieriday').html(jieri.hjsjtstotal);

    });
} ;  

function isEmptyObject(obj) {   
　　for (var key in obj){
　　　　return false;//返回false，不为空对象
　　}　　
　　return true;//返回true，为空对象
}
</script>